<%--
  Created by IntelliJ IDEA.
  User: Ypl
  Date: 2022/10/8
  Time: 15:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>文件上传</title>
</head>
<body>
<form action="/upload" method="post" enctype="multipart/form-data">
    <input type="text" name="username">
    <input type="file" name="file">
    <input type="submit" value="上传">
</form>


<a href="${pageContext.request.contextPath}/download?name=Koala.jpg">下载</a>


</body>
</html>
